<?php
/*
 * @Author: 李明
 * @Date: 2022-01-21 09:39:05
 * @LastEditTime: 2022-01-21 10:36:49
 * @LastEditors: 李明
 * @Description: 
 * @FilePath: /CRM2.0-PHP/app/Http/Resources/TL/TLPay.php
 * @山东壹零贰肆信息科技有限公司
 */

namespace App\Http\Resources\TL;

use Illuminate\Http\Resources\Json\JsonResource;

class TLPay extends JsonResource
{
    /**
     * Transform the resource into an array.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return array|\Illuminate\Contracts\Support\Arrayable|\JsonSerializable
     */
    public function toArray($request)
    {
        $data['id'] = $this->id;
        $data['toAcctDate'] = $this->toAcctDate;
        $data['toAcctName'] = $this->toAcctName;
        $data['toAcctNo'] = $this->toAcctNo;
        $data['toAcctTime'] = $this->toAcctDate . $this->trans_time;
        $data['trans_time'] = $this->trans_time;
        $data['acct_num'] = $this->acct_num;
        $data['amt_tran'] = $this->amt_tran;
        $data['resp_code'] = $this->resp_code;
        $data['acs_summary'] = $this->acs_summary;
        return $data;
    }
}
